package com.bigdata.service.domain.bo;

import com.bigdata.common.core.validate.AddGroup;
import com.bigdata.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.bigdata.common.core.domain.BaseEntity;

/**
 * 用户查询历史记录业务对象 search_history
 *
 * @author ruoyi
 * @date 2025-07-23
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SearchHistoryBo extends BaseEntity {

    /**
     * 自增主键
     */
    @NotBlank(message = "自增主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 用户ID，关联用户表，游客则为NULL
     */
    @NotBlank(message = "用户ID，关联用户表，游客则为NULL不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 查询内容
     */
    @NotBlank(message = "查询内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String queryContent;

    /**
     * 查询时间
     */
    @NotNull(message = "查询时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date searchTime;
    /**
     * 分页大小
     */
    private Integer pageSize;

    /**
     * 当前页数
     */
    private Integer pageNum;

}
